package org.ldh.demo.controller;

import org.ldh.demo.service.MultiDataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author danDong
 * @date 2025-09-10 08:46:35
 */
@RestController
public class DemoController {

    @Autowired
    private MultiDataSourceService multiDataSourceService;

    @GetMapping("/select")
    public void select() {
         multiDataSourceService.queryFromMySQL();
         multiDataSourceService.queryFromPostgreSQL();
    }
}
